
#ifndef _GRPS_H
#define _GPRS_H

#include "config.h"

extern uint8 Mc55WorkStatus;		



#define MC55_TCP		1
#define MC55_UDP		2




#define MC55_SINIT		1
#define MC55_PWON		2					
#define MC55_PWOFF		3
#define MC55_PDON		4
#define MC55_PDOFF		5
#define MC55_CWAIT		6
#define MC55_IGTON		7
#define MC55_IGTOFF		8
#define MC55_OWAIT		9
#define MC55_ATSMSO		10
#define MC55_GETCSQ		11
#define MC55_LINKING	12
#define MC55_LINKEND	13
#define MC55_CLOSE		14
#define MC55_LINKOK		15



#define MC55_PWON_TIME		10	
#define MC55_PWOFF_TIME		10	
#define MC55_PDON_TIME		40	
#define MC55_PDOFF_TIME		10	
#define MC55_IGTON_TIME		5	
#define MC55_IGTOFF_TIME	15	
#define MC55_AT_TIME		5	
#define MC55_ATCSQ_TIME		50	
#define MC55_ATSISO_TIME	100	
#define MC55_ATSISC_TIME	10	
#define MC55_LINK_TIME		100	
#define MC55_CLOSE_TIME		10	
#define MC55_ATSMSO_TIME	20	
#define MC55_PARA_TIME		10	


extern void AtComSend(uint8 *AtStr);	
extern void HandleGprsTime(void);		
extern void HandleGprs(void);
extern void Mc55SendBytes(uint8 *pdata, uint16 size);
extern void HandleMc55RxdData(void);
extern uint8 strcmp_n(uint8 *sstr,uint8 *dstr);
extern void MC55_Init(void);

extern void Mc55CloseNet(void);
extern void ShutDownMc55(void);
#endif